/*
 * @Author: 周洋 1430536748@qq.com
 * @Date: 2024-07-25 16:15:21
 * @LastEditors: 周洋 1430536748@qq.com
 * @LastEditTime: 2024-08-22 23:55:32
 * @version: 1.2.3
 * @Description: 
 */
import { PropType } from "vue";
const IPlacement = ['bt', 'lr'] as const;
type IAlignType = (typeof IPlacement)[number];
const IShape = ['circle', 'square'] as const;
type IShapeType = (typeof IShape)[number];


export const props = {
    /** 对齐方式 [上下，左右] */
    align: { type: String as PropType<IAlignType>, validator: (v: any) => IPlacement.includes(v), default: 'bt' },
    /** Avatar 形状 */
    shape: { type: String as PropType<IShapeType>, validator: (v: any) => IShape.includes(v), default: 'square'},
    /** 头像地址 */
    src: { type: String, default: '' },
    /** 头像名称 */
    name: { type: String, default: '' },
    /** 头像大小 */
    size: { type: Number, default: 40 },
    /** popover宽度 */
    popoverWidth: { type: Number || String, default: 200 },
};